package com.sx.zongzhi.bean;

import java.io.Serializable;

import xiaofei.library.datastorage.annotation.ClassId;

/**
 * Created by XZY on 2017/11/29.
 * 登录用户返回的
 */
@ClassId("UserBean")
public class UserBean implements Serializable {
    /**
     * id : 5F1F3770D4C2D4A9E05013AC186B4181
     * mobile : 13111111111
     * name : 市级用户
     * org : {}
     * sid : 9257c054-a8a1-4f6e-a191-2046aed7471e
     * userName : shi
     * workPhone : 1111111111111
     */

    private String id;
    private String mobile;
    private String name;//昵称
    private OrgBean org;
    private String sid;
    private String headerUrl;
    private String userName;//登录
    private String workPhone;
    /**是否记住密码*/
    private boolean isCheck;
    private String password;
    private String workCompany;
    /**是否接收消息*/
    private boolean isJuPush=true;

    public boolean isJuPush() {
        return isJuPush;
    }

    public void setJuPush(boolean juPush) {
        isJuPush = juPush;
    }

    public String getWorkCompany() {
        return workCompany;
    }

    public void setWorkCompany(String workCompany) {
        this.workCompany = workCompany;
    }

    public String getHeaderUrl() {
        return headerUrl;
    }

    public void setHeaderUrl(String headerUrl) {
        this.headerUrl = headerUrl;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public OrgBean getOrg() {
        return org;
    }

    public void setOrg(OrgBean org) {
        this.org = org;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getWorkPhone() {
        return workPhone;
    }

    public void setWorkPhone(String workPhone) {
        this.workPhone = workPhone;
    }

    public static class OrgBean {
        /**
         * id : 5F1F04911C8D6438E05013AC186B3C33
         * orgLevel : {"displayName":"地、市、州、盟","id":"5F1F0364C3D1F221E05013AC186B3C3F"}
         * orgName : 测试市
         * orgType : {"displayName":"行政区域","id":"5F1F03688FA4C63AE05013AC186B3C2F"}
         */

        private String id;
        private OrgLevelBean orgLevel;
        private String orgName;
        private OrgTypeBean orgType;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public OrgLevelBean getOrgLevel() {
            return orgLevel;
        }

        public void setOrgLevel(OrgLevelBean orgLevel) {
            this.orgLevel = orgLevel;
        }

        public String getOrgName() {
            return orgName;
        }

        public void setOrgName(String orgName) {
            this.orgName = orgName;
        }

        public OrgTypeBean getOrgType() {
            return orgType;
        }

        public void setOrgType(OrgTypeBean orgType) {
            this.orgType = orgType;
        }

        public static class OrgLevelBean {
            /**
             * displayName : 地、市、州、盟
             * id : 5F1F0364C3D1F221E05013AC186B3C3F
             * internalId:级别内置编码 0:片组片格,10:村、社区,20:乡镇、街道,30:县、市、区、旗,40:地、市、州、盟,50:省、自治区、直辖市,60:中央
             */

            private String displayName;
            private String id;
            private int internalId;

            public int getInternalId() {
                return internalId;
            }

            public void setInternalId(int internalId) {
                this.internalId = internalId;
            }

            public String getDisplayName() {
                return displayName;
            }

            public void setDisplayName(String displayName) {
                this.displayName = displayName;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }
        }

        public static class OrgTypeBean {
            /**
             * displayName : 行政区域
             * id : 5F1F03688FA4C63AE05013AC186B3C2F
             */

            private String displayName;
            private String id;

            public String getDisplayName() {
                return displayName;
            }

            public void setDisplayName(String displayName) {
                this.displayName = displayName;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }
        }
    }

}
